package Obiect;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String line="ass1fdgf123qwer";
        String[]data=line.split("[0-9]+");
        System.out.println(Arrays.toString(data));
        //最开始就是可拆分项，那么数组第一个元素为空字符串
        //
        line=".123.456..899....";
        data=line.split("\\.");
        System.out.println(Arrays.toString(data));
        System.out.println(data.length);

        }
    }

